package com.alibaba.citrus.cr.platform.enhance.repository;

import com.epoch.app.crplatformenhance.model.dto.CustomerAddressRelationLoadListRequest;
import com.epoch.app.crplatformenhance.model.dto.CustomerAddressRelationSDO;

import java.util.List;

public interface CustomerAddressRelationRepository {

    /**
     * 创建送达方客户负责人关联
     *
     * @param sdo
     * @return
     */
    Boolean createAddressRelation(CustomerAddressRelationSDO sdo);

    /**
     * 创建售达方客户负责人关联
     *
     * @param sdo
     * @return
     */
    Boolean createSaleScopeRelation(CustomerAddressRelationSDO sdo);

    /**
     * 删除
     *
     * @param sdo
     * @return
     */
    Integer deleteAddressRelation(CustomerAddressRelationSDO sdo);

    /**
     * 查询
     *
     * @param request
     * @return
     */
    List<CustomerAddressRelationSDO> queryRelationList(CustomerAddressRelationLoadListRequest request);



}
